﻿<UserControl x:Class="EffectiveCapacityReport.EffectiveCapacity"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    xmlns:telerikChart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"
    xmlns:telerikCharting="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <!--<UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="style/style.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>-->

    <!--<StackPanel x:Name="LayoutRoot" Background="#2a2f36" >-->
    <telerikChart:RadChart x:Name="testChart" ItemsSource="{Binding EffectiveCapacityList}" Style="{StaticResource ChartStyle}" TitleStyle="{StaticResource ChartTitleStyle}">
            <telerikChart:RadChart.DefaultView>
                <telerikCharting:ChartDefaultView>

                    <telerikCharting:ChartDefaultView.ChartTitle>
                        <telerikCharting:ChartTitle Content="Umm Shaif Effective Capacity - 2012" HorizontalAlignment="Stretch"/>
                    </telerikCharting:ChartDefaultView.ChartTitle>

                    <telerikCharting:ChartDefaultView.ChartLegend>
                        <telerikCharting:ChartLegend x:Name="chartLegend" Header="Legend" Visibility="Collapsed"/>
                    </telerikCharting:ChartDefaultView.ChartLegend>

                    <telerikCharting:ChartDefaultView.ChartArea>


                        <telerikCharting:ChartArea LegendName="chartLegend" PlotAreaStyle="{StaticResource ClipPanelStyle}" >


                            <telerikCharting:ChartArea.AxisX>
                                <telerikCharting:AxisX Title="" IsDateTime="False">
                                    <telerikCharting:AxisX.AxisStyles>
                                        <telerikCharting:AxisStyles AxisLineStyle="{StaticResource AxisLineStyle}" TickLineStyle="{StaticResource AxisTickStyle}" GridLineStyle="{StaticResource GridLineStyle}" ItemLabelStyle="{StaticResource XItemLabelStyle}" TitleStyle="{StaticResource AxisTitleStyle}">
                                        </telerikCharting:AxisStyles>
                                    </telerikCharting:AxisX.AxisStyles>
                                </telerikCharting:AxisX>

                            </telerikCharting:ChartArea.AxisX>

                            <telerikCharting:ChartArea.AxisY>
                                <telerikCharting:AxisY Title="MBD" StripLinesVisibility="Collapsed" MajorGridLinesVisibility="Visible" MinorTicksVisibility="Collapsed"  >
                                    <telerikCharting:AxisY.AxisStyles>
                                        <telerikCharting:AxisStyles AxisLineStyle="{StaticResource AxisLineStyle}" TickLineStyle="{StaticResource AxisTickStyle}" GridLineStyle="{StaticResource GridLineStyle}" ItemLabelStyle="{StaticResource YItemLabelStyle}" TitleStyle="{StaticResource AxisTitleStyle}">
                                        </telerikCharting:AxisStyles>
                                    </telerikCharting:AxisY.AxisStyles>
                                </telerikCharting:AxisY>
                            </telerikCharting:ChartArea.AxisY>
                           
                        </telerikCharting:ChartArea>
                    </telerikCharting:ChartDefaultView.ChartArea>
                </telerikCharting:ChartDefaultView>
            </telerikChart:RadChart.DefaultView>

        <telerik:RadChart.SeriesMappings>

            <telerik:SeriesMapping>
                <telerik:SeriesMapping.SeriesDefinition>
                    <telerik:BarSeriesDefinition ShowItemLabels="True" SeriesItemLabelStyle="{StaticResource SeriesItemLabelStyle}">
                        <telerikCharting:BarSeriesDefinition.Appearance>
                            <telerikCharting:SeriesAppearanceSettings Fill="#4ECF13" />
                        </telerikCharting:BarSeriesDefinition.Appearance>
                    </telerik:BarSeriesDefinition>
                </telerik:SeriesMapping.SeriesDefinition>
                <telerik:ItemMapping DataPointMember="YValue" FieldName="YValue" />
                <telerik:ItemMapping DataPointMember="XCategory" FieldName="XCategory" />
            </telerik:SeriesMapping>
        </telerik:RadChart.SeriesMappings>
    </telerikChart:RadChart>

    <!--</StackPanel>-->
</UserControl>